package com.ruoyi.gwc.mapper;

import java.util.List;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.ruoyi.gwc.domain.TDispatchVehicles;

/**
 * 调度车辆Mapper接口
 * 
 * @author wp
 * @date 2024-12-13
 */
public interface TDispatchVehiclesMapper extends BaseMapper<TDispatchVehicles>
{
    /**
     * 查询调度车辆
     * 
     * @param dispatchId 调度车辆主键
     * @return 调度车辆
     */
    public TDispatchVehicles selectTDispatchVehiclesByDispatchId(Long dispatchId);

    /**
     * 查询调度车辆列表
     * 
     * @param tDispatchVehicles 调度车辆
     * @return 调度车辆集合
     */
    public List<TDispatchVehicles> selectTDispatchVehiclesList(TDispatchVehicles tDispatchVehicles);

    /**
     * 新增调度车辆
     * 
     * @param tDispatchVehicles 调度车辆
     * @return 结果
     */
    public int insertTDispatchVehicles(TDispatchVehicles tDispatchVehicles);

    /**
     * 修改调度车辆
     * 
     * @param tDispatchVehicles 调度车辆
     * @return 结果
     */
    public int updateTDispatchVehicles(TDispatchVehicles tDispatchVehicles);
    public int updateTDispatchVehiclesByApplyId(TDispatchVehicles tDispatchVehicles);


    /**
     * 删除调度车辆
     * 
     * @param dispatchId 调度车辆主键
     * @return 结果
     */
    public int deleteTDispatchVehiclesByDispatchId(Long dispatchId);

    /**
     * 批量删除调度车辆
     * 
     * @param dispatchIds 需要删除的数据主键集合
     * @return 结果
     */
    public int deleteTDispatchVehiclesByDispatchIds(Long[] dispatchIds);
}
